<!DOCTYPE HTML>
<html>
<head>
    <style>
        .rotate {

/* Safari */
-webkit-transform: rotate(-90deg);

/* Firefox */
-moz-transform: rotate(-90deg);

/* IE */
-ms-transform: rotate(-90deg);

/* Opera */
-o-transform: rotate(-90deg);

/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

}
    </style>

</head>
<body >
    <p class="rotate">text foo bar</p>
</body>
</html>